package com.example.shangjinlieren.tabbar.model;

import com.example.shangjinlieren.ResourceTable;
import com.example.shangjinlieren.fractionPage.MoneyList;
import com.example.shangjinlieren.fractionPage.MyCenter;
import com.example.shangjinlieren.tabbar.entity.BottomNavItem;
import ohos.aafwk.ability.fraction.Fraction;

import java.util.ArrayList;
import java.util.List;

public class BottomNavViewModel {

    List<Fraction> fractions = new ArrayList<>();
    List<BottomNavItem> bottomNavItems = new ArrayList<>();
    public List<Fraction> initBottomNavFractionsBody(){
        MoneyList moneyList = new MoneyList();
        MyCenter myCenter = new MyCenter();
        fractions.add(moneyList);
        fractions.add(myCenter);
        return fractions;
    }

    public List<BottomNavItem> initBottomNavFractions(){
        BottomNavItem bottomNavItem = new BottomNavItem();
        BottomNavItem bottomNavItem1 = new BottomNavItem();
        bottomNavItem.setImg(ResourceTable.Media_icon_normal);
        bottomNavItem.setSelectImg(ResourceTable.Media_icon_actived);
        bottomNavItem.setUnselectColor("#7B7B7B");
        bottomNavItem.setSelectColor("#254FF7");
        bottomNavItem.setTitle("赏金列表");
        bottomNavItem1.setImg(ResourceTable.Media_icon_normal);
        bottomNavItem1.setSelectImg(ResourceTable.Media_icon_actived);
        bottomNavItem1.setUnselectColor("#7B7B7B");
        bottomNavItem1.setSelectColor("#254FF7");
        bottomNavItem1.setTitle("个人中心");
        bottomNavItems.add(bottomNavItem);
        bottomNavItems.add(bottomNavItem1);
        return bottomNavItems;
    }
}
